<!DOCTYPE html>
<html>
	<head>
			<title>用户管理-列表</title>
			<#-- 引入eleTree树控件的样式 -->
	<link rel="stylesheet" href="${request.contextPath}/plugins/layui/extend/eleTree/eleTree.css">
	<#include "fsoft-common.ftl" />
	<style>
		.layui-layer-page .layui-layer-content { overflow: visible !important; }
	</style>
	</head>
	<body>
		<div class="layui-fluid">
			<div class="layui-row layui-col-space5">
				<div class="layui-col-md2">
					<div class="layui-card">
						<div class="layui-card-body">
							<div id="fsoft-orgTree" lay-filter="fsoft-orgTree" class="fsoft-trees"></div>
						</div>
					</div>
				</div>
				<div class="layui-col-md10">
					<div class="layui-card">
						<div class="layui-card-body">
							<form class="layui-form" action="" id="fsoftSearchForm" lay-filter="fsoftSearchForm" autocomplete="off">
								<input type="hidden" class="layui-input" name="orgId" id="orgId">
								<div class="layui-inline layui-show-xs-block">
									<input type="text" name="loginAcct"  placeholder="登录名精确搜索" autocomplete="off" class="layui-input">
								</div>
								<div class="layui-inline layui-show-xs-block">
									<input type="text" name="mobile"  placeholder="手机号模糊搜索" autocomplete="off" class="layui-input">
								</div>
								<div class="layui-inline layui-show-xs-block">
									<button class="layui-btn layui-btn-normal" lay-submit lay-filter="sreach">
										<i class="layui-icon layui-icon-search"></i>搜索
									</button>
								</div>
							</form>
						</div>
						<div class="layui-card-body">
							<table id="sysUserTable" class="layui-table" lay-filter="sysUserTable"></table>
						</div>
					</div>
				</div>
			</div>
		</div> 
	</body>
	<#include "fsoft-common-foot.ftl" />
	<script type="text/javascript">
		layui.extend({eleTree:'eleTree/eleTree'});
	</script>
	<script type="text/html" id="batchBtnToolBar">
		<div class="layui-btn-container">
			<div class="layui-btn-group">
				<@perms value="sys:user:add">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="add">
					<i class="fa fa-user-plus" aria-hidden="true" ></i> 新增
				</button>
				</@perms>
				<@perms value="sys:user:remove">
				<button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="removeBatch">
					<i class="fa fa-trash" aria-hidden="true"></i> 删除
				</button>
				</@perms>
			</div>
			<div class="layui-btn-group">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="refpwd">
					<i class="fa fa-key" aria-hidden="true" ></i> 修改密码
				</button>
			</div>
			<div class="layui-btn-group">
				<@perms value="sys:user:enable">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="enable">
					<i class="fa fa-play-circle" aria-hidden="true" ></i> 启用
				</button>
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="disable">
					<i class="fa fa-minus-circle" aria-hidden="true" ></i> 禁用
				</button>
				</@perms>
				<@perms value="sys:user:lock">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="lock">
					<i class="fa fa-lock" aria-hidden="true" ></i> 加锁
				</button>
				</@perms>
				<@perms value="sys:user:unlock">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="unlock">
					<i class="fa fa-unlock" aria-hidden="true" ></i> 解锁
				</button>
				</@perms>
			</div>
		</div>
	</script>
	<#-- 每一行最后一列的“操作” -->
	<script type="text/html" id="tbRowBar">
		<div class="layui-btn-container">
			<@perms value="sys:user:info">
			<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="detail">修改密码</button>
			</@perms>
			<@perms value="sys:user:edit">
			<button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">编辑</button>
			</@perms>
			<@perms value="sys:user:remove">
			<button class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</button>
			</@perms>
		</div>
	</script>
	<script type="text/html" id="switchStatus">
	  	<#-- 这里的 checked 的状态 -->
	  	<input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="正常|禁用" lay-filter="status" {{ d.status == 1 ? 'checked' : '' }}>
	</script>
	<script type="text/javascript" src="${request.contextPath}/static/fsoft-web/user/sysuser-list.js?v=202002"></script>
</html>